export const schema = {
    type: "page",
    title: "审核信息查看",
    // initApi: "get:/api/teamcashinfo/my?_=${_}",
    toolbar: [
        {
            // visibleOn: "data.verify_status != 1",
            type: "button",
            // size: "xs",
            level: "primary",
            label: "通过审核",
            actionType: "ajax",
            redirect: "/finance/account/list",
            api: "put:/api/teamcashinfo/${id}?status=1"
        },
        {
            // visibleOn: "data.verify_status != 2",
            type: "button",
            // size: "xs",
            label: "驳回审核",
            level: "danger",
            confirmText: "确定要驳回审核？",
            actionType: "dialog",
            dialog: {
                title: "请输入驳回审核原因",
                body: {
                    type: "form",
                    api: "put:/api/teamcashinfo/${id}?status=2",
                    redirect: "/finance/account/list",
                    controls: [
                        {
                            label: false,
                            type: "text",
                            name: "reason"
                        }
                    ]
                }
            }
        },
        {
            type: "button",
            level: "info",
            actionType: "link",
            label: "返回列表",
            link: "/finance/account/list"
        },
    ],
    body: [
        {
            // className: "m-t-md",
            // panelClassName: "no-border no-shadow",
            initApi: "get:/api/teamcashinfo/${id}",
            name: "casheditform",
            type: "form",
            title: "",
            mode: "horizontal",
            fieldSet: [
                {
                    title: "申请人信息",
                    subTitle: "请准确提供并及时更新您提供的电子邮件地址、联系方式等，以便公司与您进行联系。",
                    controls: [
                        [
                            {
                                type: "static",
                                name: "contacts_realname",
                                label: "姓名",
                            },
                            {
                                type: "static",
                                name: "contacts_email",
                                label: "邮箱",
                            }
                        ],
                        [
                            {
                                type: "static",
                                name: "phone",
                                label: "手机号",
                            },
                            {
                                type: "static",
                                name: "contacts_idno",
                                label: "身份证号",
                            },
                        ],

                        {
                            type: "static-image",
                            name: "contacts_id_card_front",
                            label: "身份证正面照片",
                            popOver: {
                                title: "",
                                body:
                                    '<div class="w-xx-xxl"><img class="w-full" src=${contacts_id_card_front} /></div>'
                            }
                        },
                        {
                            type: "static-image",
                            name: "contacts_id_card_back",
                            label: "身份证反面照片",
                            popOver: {
                                title: "",
                                body:
                                    '<div class="w-xx-xxl"><img class="w-full" src=${contacts_id_card_back} /></div>'
                            }
                        },
                        {
                            type: "static-image",
                            name: "contacts_id_card_people",
                            label: "手持身份证照片",
                            popOver: {
                                title: "",
                                body:
                                    '<div class="w-xx-xxl"><img class="w-full" src=${contacts_id_card_people} /></div>'
                            }
                        }
                    ]
                },

                {
                    title: "收款账号信息",
                    subTitle: "志多星对公账号为建设银行，转账按建行规定收取一定手续费，志多星不收取任何中介费用",
                    controls: [
                        {
                            type: "radios",
                            label: "账号性质",
                            name: "bank_card_type",
                            columnsCount: 2,
                            // desc: '',
                            options: [
                                {
                                    label: "个人账号",
                                    value: "1"
                                },
                                {
                                    label: "对公账号",
                                    value: "2"
                                },
                            ],
                            disabled: true
                        },

                        {
                            type: "static",
                            label: "户名",
                            name: "bank_card_account",
                        },


                        {
                            type: "static",
                            label: "账户号",
                            name: "bank_card_num",

                        },

                        {
                            type: "static",
                            label: "开户银行",
                            name: "bank_company",
                        },
                        {
                            type: "static",
                            label: "开户支行",
                            name: "bank_branch",
                        },
                        {
                            type: "static",
                            label: "开户行地址",
                            name: "bank_card_open_addr",

                        },
                        {
                            type: "static",
                            label: "开户行联行号",
                            name: "bank_connect_code",
                        },
                        {
                            type: "file",
                            name: "auth_document",
                            label: "提款授权证明",
                            disabled: true,
                        },
                    ]
                }
            ]
        }
    ]
};
